import { createRouter, createWebHashHistory } from 'vue-router';  
import Home from '../views/Home.vue';  
import Person from '../views/person.vue';
import my from '../views/my.vue';
import Login from '../components/Login.vue';
import player from '../components/player.vue';
  
  
const routes = [  
  {  
    path: '/',  
    name: 'Home',  
    component: Home,  
  },  
  {  
    path: '/person',  
    name: 'Person',  
    component: Person,  
  }, 
  {  
    path: '/my',  
    name: 'my',  
    component: my,  
  },
  {
    path: '/login', // 添加登录页面的路由规则
    name: 'Login', // 组件名称为 "Login"
    component: Login, // 对应的组件文件名为 "Login.vue"
  },
  {
    path: '/player', // 添加登录页面的路由规则
    name: 'player', // 组件名称为 "Login"
    component: player, // 对应的组件文件名为 "Login.vue"
  },
  
    
  // 其他路由...  
];  
  
const router = createRouter({  
  history: createWebHashHistory(),  
  routes, // 简写，相当于 routes: routes  
});  
  
export default router;